package com.samples.gui;

import java.awt.BorderLayout;
import java.sql.SQLException;

import javax.swing.JFrame;

public class MainFrame {

	private JFrame frame;
	private NorthPanel northPanel;
	private SouthPanel southPanel;

	public MainFrame() {
		frame = new JFrame();
		northPanel = new NorthPanel();
		southPanel = new SouthPanel();
		frame.setLayout(new BorderLayout());
		frame.add(northPanel.getNorthPanel(),BorderLayout.NORTH);
		frame.add(southPanel.getSouthPanel(),BorderLayout.SOUTH);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.pack();
	}

	public void isVisible(boolean isVisible) {
		frame.setVisible(isVisible);
	}

	public void dataBindToCmbCity() throws SQLException {
	
		northPanel.dataBindToCmbCity();
	}
	
	
}
